home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / ^Screen_Savers / Pluto / data1.cab / Data_Files / Levelone.wor < prev    next >
Encoding:
Text File  |  1999-03-12  |  3.9 KB  |  135 lines

  1. // This is a level creation file
  2. // creation begun on 12-27-98
  3. // This file was used to create the ...
  4.  
  5.  
  6. AddDynamicLight("sun", LIGHT_POINT, 1, 1, 0.5, 500000, -250000, 0, 1000000);
  7.  
  8. // Sun
  9. Sphere("sun", "", 4, 500000, -250000, 0, 1000.0f, 0xffffff77);
  10. ChangeFlag("sun", OBJECT_LITE, 0);
  11. ChangeLayer("sun", 2);
  12.  
  13. // Planet
  14. // sphere(name, # meshes, x, y, z, size, color);
  15. //SphereVoxel("ep1", "ep1", 21, 0, 0, 0, 25600, 0.1, 0xff101010);
  16. Sphere("ep1", "ep1", 21, 0, 0, 0, 25600, 0xff101010);
  17. ChangeFlag("ep1", OBJECT_LITE, 1);
  18. ChangeLayer("ep1", 7);
  19.  
  20. // Clouds
  21. Sphere("ep1w2", "ep1w2", 11, 0, 0, 0, 28000.0f, 0xff101010);
  22. ChangeFlag("ep1w2", OBJECT_COLLISION, 0);
  23. ChangeFlag("ep1w2", OBJECT_NOBACKFACE, 1);
  24. ChangeLayer("ep1w2", 8);
  25.  
  26. // Moon sphere
  27. SphereVoxel("ap1", "ap1", 9, 4710, -89876, 0, 1000.0f, 0.5, 0xff040404);
  28.  
  29. // asteroids
  30. // 40000
  31. Sphere("ast1", "ast",  6,  34641,  20000, 0, 200.0f, 0xff000000);
  32. // 42500
  33. Sphere("ast7", "ast",  6, -34641,  21000, 0, 200.0f, 0xff000000);
  34. // 45000
  35. Sphere("ast2", "ast",  6,  38971, -22500, 0, 300.0f, 0xff000000);
  36. // 47500
  37. Sphere("ast8", "ast",  6, -38971, -23500, 0, 300.0f, 0xff000000);
  38. // 50000
  39. Sphere("ast3", "ast",  6,      0, -50000, 0, 400.0f, 0xff000000);
  40. // 52500
  41. Sphere("ast9", "ast",  6,      0,  51000, 0, 400.0f, 0xff000000);
  42. // 55000
  43. Sphere("ast4", "ast",  6, -47631, -27500, 0, 500.0f, 0xff000000);
  44. // 57500
  45. Sphere("ast10", "ast", 6,  47631, -28500, 0, 500.0f, 0xff000000);
  46. // 62500
  47. Sphere("ast5", "ast",  6, -51961, -30000, 0, 600.0f, 0xff000000);
  48. // 60000
  49. Sphere("ast11", "ast", 6,  51961, -31000, 0, 600.0f, 0xff000000);
  50. // 62500
  51. Sphere("ast6", "ast",  6,      0,  65000, 0, 700.0f, 0xff000000);
  52. // 65000
  53. Sphere("ast12", "ast", 6,      0, -66000, 0, 700.0f, 0xff000000);
  54.  
  55. // Add some lightning for effect
  56. AddLightning("ltng1", LIGHT_POINT, 1, 1, 1, -21213, -21213,      0, 20000);
  57. AddLightning("ltng2", LIGHT_POINT, 1, 1, 1, -15000, -15000, -21213, 20000);
  58. AddLightning("ltng3", LIGHT_POINT, 1, 1, 1,  21213,  21213,      0, 20000);
  59. AddLightning("ltng4", LIGHT_POINT, 1, 1, 1,  15000,  15000,  21213, 20000);
  60. AddLightning("ltng5", LIGHT_POINT, 1, 1, 1,      0, -30000,      0, 20000);
  61.  
  62.  
  63. // Environment box (Voodoo2 doesn't do well at these distances)
  64. Backdrop("star", 1000000);
  65. ChangeFlag("star", OBJECT_NOFILTER, 0);
  66.  
  67.  
  68. /*
  69. Sphere("sky4", "sky4", 8, 0, 0, 0, 1000000, 0xd0202020);
  70. ReverseNormals("sky4");
  71. ChangeFlag("sky4", OBJECT_COLLISION, 0);
  72. ChangeFlag("sky4", OBJECT_LITE, 0);
  73. ChangeLayer("sky4", 0);
  74. */
  75.  
  76. LoadModel("quazar.obj");
  77. ChangeFlag("quazar", OBJECT_LITE, 0);
  78. ChangeFlag("quazar", OBJECT_COLLISION, 0);
  79. ReverseNormals("quazar");
  80. ChangeLayer("quazar", 2);
  81.  
  82.  
  83. LoadModel("square.obj");
  84. ChangeFlag("square", OBJECT_LITE, 0);
  85. //ChangeFlag("square", OBJECT_NOBACKFACE, 1);
  86. ChangeLayer("square", 1);
  87.  
  88. // Load the buildings
  89. LoadModel("builds1.flt");
  90.  
  91. // Make objects relative to universe center
  92. // and place on the planets surface
  93. Offset("o7", 0, 0, 0);
  94. PlaceOnSphere("o7", "ep1", 0.005, -0.014);
  95. Offset("o8", 0, 0, 0);
  96. PlaceOnSphere("o8", "ep1", 0.010, -0.020);
  97. Offset("o9", 0, 0, 0);
  98. PlaceOnSphere("o9", "ep1", 0.004, 0.000);
  99. Offset("o10", 0, 0, 0);
  100. PlaceOnSphere("o10", "ep1", 0.010, -0.006);
  101. Offset("o11", 0, 0, 0);
  102. PlaceOnSphere("o11", "ep1", 0.020, -0.014);
  103. Offset("o12", 0, 0, 0);
  104. PlaceOnSphere("o12", "ep1", 0.0220, -0.0155);
  105.  
  106. /*
  107. LoadModel("shadbd.obj");
  108. ChangeFlag("shadbd", OBJECT_COLLISION, 0);
  109. ChangeFlag("shadbd", OBJECT_LITE, 0);
  110. ChangeFlag("shadbd", OBJECT_NOFILTER, 0);
  111. */
  112.  
  113. // PI + PI / 2.0f
  114. RotatePlayer(4.712388980385, 0, 0);
  115. //RotatePlayer(1.57, 1.57, 1.57);
  116. MovePlayer(0, 100000, 0);
  117. ResetPlayer();
  118.  
  119. StaticLights(0);
  120. DynamicLights(1);
  121.  
  122. /*
  123. // backdrop(name);
  124. Backdrop("env", 8000);
  125.  
  126. LoadModel ("floor.3ds");
  127.  
  128. // PI + PI / 1.75f
  129. RotatePlayer(4.936788455641, 0, 0);
  130. MovePlayer(0, 800, 190);
  131.  
  132. StaticLights(1);
  133. DynamicLights(0);
  134. */
  135.